#ifndef DISPLAY_H
#define DISPLAY_H
//#include <stdint.h>
#include "time_iic.h"
#include "sc95f.h"


#define s1			0<<3
#define s2			1<<3
#define s3			2<<3
#define s4			3<<3
#define s5			4<<3
#define s6			5<<3
#define s7			6<<3
#define s8			7<<3//s1-s8 0x20

#define s9			8<<3
#define s10			9<<3//s9-s10 0x21



#define g1			0
#define g2			1
#define g3			2
#define g4			3
#define g5			4
#define g6			5
#define g7			6
#define g8			7

#define half_show_value   0x6f

//typedef enum
//{
//	NONE,

//    LED_POWER_ON,

//	LED_OPEN,

//	LED_CLOSE,

//	LED_STIR_FRY,

//	LED_SELF_HELP,

//	LED_WIND_SPEED,

//	LED_TIMING,




//}Led_Display_Stat ;

//extern uint8_t ring_numb_count;
//extern uint8_t ring_numb_count2;
//extern uint8_t ring_numb_count3;
//extern uint8_t Tenths_digit_display_numb;
//extern uint8_t quintile_display_numb;
//extern uint8_t The_units_display_numb;
//extern uint8_t decade_display_numb;

//extern uint8_t stir_fry_time_count1;
//extern uint8_t stir_fry_time_count2;
//extern uint8_t stir_fry_time_count3;
//extern uint8_t stir_fry_time_count4;

//extern uint8_t stir_fry_time_count_time_flg;

extern uint8_t comm_200ms_wait_time;

extern uint8_t Aip_650_units_numb_display[14];
extern uint8_t Aip_650_numb_display[18];
extern uint8_t button_numb_display[14];
extern	uint8_t diffuse_count1;
extern uint8_t atuo_count;
extern uint8_t atuo_count1;

extern uint8_t ring_delay_count;
extern uint8_t ring_delay_count_end_flg;
extern uint8_t ring_delay_count_start_flg;	
extern uint8_t flow_delay_count;
extern uint8_t flow_delay_count_end_flg;
extern uint8_t flow_delay_count_start_flg;


extern uint8_t breath_time;
extern uint8_t	breath_number;

extern uint8_t breath_time1;
extern uint8_t	breath_number1;

void Aip650_display_control(void);

void AiP33624_display_control(void);
void breath_led_all_show(void);
void breath_led_all_close(void);
void AiP33624_ring_display_control(uint8_t ring_numb);


void Aip650_all_show(void);
void Aip650_all_close(void);
void AiP33624_all_close(void);
void AiP33624_all_breath_close(void);
void AiP33624_all_ring_close(void);
void AiP33624_all_show(void);
void Aip33624_breath_led_control(void);
void Aip33624_breath_ring_control(void);
void button_all_show(void);
void AiP33624_ring_all_show(void);
void Aip33624_ring_all_close(void);

void Aip33624_ring_auto_show(void);
void Aip33624_diffuse_display(void);
void Aip33624_diffuse_display1(void);

void flow_display_delay2(void);
void Aip33624_diffuse_display2(void);

void Aip33624_ring_auto_show1(void);
void ring_display_delay(void);

//func1
void func_button_half_display_control(uint8_t mode_select,uint8_t status);
void func_button_half_display(void);
void power_on_display(void);
void display_process(void);
void stir_fry_time_compute(void);

#endif
